#include "type.h"
#include "ipmi.h"

typedef struct{
    uint8 netfn;
    uint8 cmd;
    uint16 start_of_request;
    uint16 size_of_request;
    uint16 data_size;
    uint8 data[PACKET_BUFFER];
} __attribute__((__packed__)) payload_info_t;

typedef struct{
    uint8 channel;
    struct sockaddr address;
    uint8 payload_ipmi20;
    struct{
        void (*send)(uint8* payload, uint8* channel);
    } response;
} __attribute__((__packed__)) channel_info_t;

